import request from '@/utils/request'
export default{
  //添加小节信息
  addVideoinfo(eduVideo){
    return request({
      url: `/eduservice/edu-video/addVideoinfo`,
      method: 'post',
      data: eduVideo
    })
  },
  //根据小节的id获取小节信息
  getvideoinfobyidx(videoid){
    return request({
      url: `/eduservice/edu-video/getvideoinfobyid/${videoid}`,
      method: 'get'
    })
  },
  //修改小节信息
  updatevideoinfo(eduVideo){
    return request({
      url: `/eduservice/edu-video/updatevideoinfo`,
      method: 'post',
      data: eduVideo
    })
  },
  //删除小节信息
  deletevideobyidx(videoid){
    return request({
      url: `/eduservice/edu-video/deletevideoinfobyid/${videoid}`,
      method: 'delete'
    })
  },
  //删除小节视频
  deletev(deleteVideoVo){
    return request({
      url: `/eduservice/edu-video/deletevideobyurl`,
      method: 'post',
      data: deleteVideoVo
    })
  }
}
